package com.cooldatasoft.security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.userdetails.AuthenticationUserDetailsService;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.openid.OpenIDAuthenticationToken;

import com.cooldatasoft.domain.model.User;
import com.cooldatasoft.exception.TaskManagerException;


/**
 * @author klobusnik
 */
public interface TaskManagerSecurityManager extends UserDetailsService,AuthenticationUserDetailsService<OpenIDAuthenticationToken> {
			
	User getCurrentUser();
	
	Boolean isAuthenticated();
	
	Boolean login(String userName, String password) throws TaskManagerException;
	
	void logout(HttpServletRequest req, HttpServletResponse resp);
}
